package com.samsung.service.vote;

import java.util.List;
import java.util.Map;

import com.samsung.dto.vote.CreateVoteDto;
import com.samsung.model.vote.VoteTopic;

public interface UpdateVoteService {
	/**
	* @Title: deleteVoteRecord
	* @Description: TODO(删除投票数据)
	* @param @param tid    设定文件
	* @return void    返回类型
	* @throws
	*/ 
	Map<String, Object> deleteVoteRecord(String tid);
	
	public boolean checkVoteData(String tid);

	VoteTopic selectTopic(String tid);

	CreateVoteDto selectOption(String tid);

	int countContent(CreateVoteDto createVoteDto);

	Map<String, Object> checkTitle(String title, String compareName);

	boolean checkTitleData(String tid, String uid);
	
	/**
	 * 新增开始
	 * @param tid
	 * @return
	 */
	List<Map<String, Object>> getVoteDetail(String tid);
	
	Map<String, String> getVoteCount(String tid);
	
	/**
	 * 新增结束
	 */
}
